package com.lsa.letcode.the59.spiralMatrix2;

import static org.junit.Assert.*;

import java.util.Arrays;

import org.junit.Test;

import com.lsa.letcode.common.LetCodeTestBase;

public class SpiralMatrix2Test extends LetCodeTestBase {
	@Test
	public void testName() throws Exception {
		Solution s = new Solution();
		assertTrue(Arrays.deepEquals(new int[][]{{1,2},{4,3}}, s.generateMatrix(2)));
		assertTrue(Arrays.deepEquals(new int[][]{{1,2,3},{8,9,4},{7,6,5}}, s.generateMatrix(3)));
		assertTrue(Arrays.deepEquals(new int[][]{{1,2,3,4},{12,13,14,5},{11,16,15,6},{10,9,8,7}}, s.generateMatrix(4)));
		assertTrue(Arrays.deepEquals(new int[][]{{1,2,3,4,5},{16,17,18,19,6},{15,24,25,20,7},{14,23,22,21,8},{13,12,11,10,9}}, s.generateMatrix(5)));
	}
}